﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.ServiceModel;
using service = global::TimeService;
namespace Cliente
{
    class Program
    {
        static void Main(string[] args)
        {
            //var ch = new ChannelFactory<service.ITimeService>("timeconfig");
            //var c = ch.CreateChannel();

            var c = new TimeProxy.TimeServiceClient();  
            


            while (true)
            {

                var req = new TimeProxy.GetTimeRequest() {  };
                Console.WriteLine(c.GetTime(req).time);  
                Thread.Sleep(5000); 
            }
            
        }
    }
}
